import React, { createContext } from 'react';

interface Config {
  prefix?: string;
}
interface TestSrc {
  testImgs?: string[];
}

const defaultConfig: Config = {
  prefix: 'well-co',
};
const defaultSrc: TestSrc = {
  testImgs: [
    'https://pic2.imgdb.cn/item/64494af00d2dde57777da267.png',
    'https://pic2.imgdb.cn/item/644e14910d2dde5777cb8616.png',
    'https://pic2.imgdb.cn/item/644e14dc0d2dde5777cbc28e.png',
    'https://pic2.imgdb.cn/item/644e14910d2dde5777cb85e2.png',
    'https://pic2.imgdb.cn/item/644e14910d2dde5777cb85cf.png',
    'https://pic2.imgdb.cn/item/644e14910d2dde5777cb85fd.png',
    'https://pic2.imgdb.cn/item/644e14dc0d2dde5777cbc214.png',
    'https://pic2.imgdb.cn/item/644e14dc0d2dde5777cbc26e.png',
    'https://pic2.imgdb.cn/item/644e14dd0d2dde5777cbc2b9.png',
    'https://pic2.imgdb.cn/item/644e15580d2dde5777cc2d2f.png',
  ],
};

export const ConfigContext = createContext(defaultConfig);
export const SrcContext = createContext(defaultSrc);
